package com.bangyu.monitor.modular.system.mapper;

import com.bangyu.monitor.modular.system.entity.WeightPayloadRecover;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Auther: zhangxue
 * @Date: 19/7/8 21:54
 * @Description:
 */
public interface WeightPayloadRecoverMapper extends BaseMapper<WeightPayloadRecover> {


    WeightPayloadRecover getLastByBeamNo(@Param("beamNo") String beamNo);
    void batchInsert(@Param("batchs") List<WeightPayloadRecover> batchs);

    List<WeightPayloadRecover> getByBeamNoAndDateLimit(@Param("beamNo") String beamNo,@Param("startDate") Integer startDate,
            @Param("endDate") Integer endDate);

}
